package cn.itcast.erp.service;

import cn.itcast.erp.entity.Goods;
import cn.itcast.erp.entity.utils.AjaxResult;

import java.io.InputStream;
import java.util.List;

public interface GoodsService {

    int deleteGoodsByUuId(Long uuid);

    int insertGoods(Goods goods);

    int updateGoods(Goods goods);


    AjaxResult findGoods(Goods goods);


    //查询所有商品不分页
    List<Goods> findAllGoods();

    //查询商品By id
    Goods findGoodsById(Long uuid);

    //导出Excel
    InputStream getAllGoodsEx();
}
